package com.hbpu.maven.spring.ioc.bean;

import com.hbpu.maven.spring.ioc.annotation.UUID;
import jakarta.annotation.Resource;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
@Data
public class Person {
    @UUID
    private String name;
    private int age;
    private String gender;
//    @Autowired

    /// /    @Qualifier("dog01")
    private Dog dog;
    public Person() {
        System.out.println("person");
    }

    @Autowired
    public void setDog(Dog dog) {
        this.dog = dog;
        System.out.println("setDog");
    }
}
